<div class="modal-dialog">
    <form id="infoFrom" class="form-horizontal" data-toggle="validator">
        <input type="hidden" name="orderId" value="${order.orderId!}">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title">开始发货</h4>
            </div>
            <div class="modal-body">
                <div class="container">
                    <div class="row">
                        <div class="form-group">
                            <label class="col-md-2 control-label required">物流公司：</label>
                            <div class="col-md-4">
                                <select class="form-control" name="expressCode">
								<#list expressList as express>
                                    <option value="${express.expressCode}" <#if order.expressCode == express.expressCode>selected</#if>>${express.expressName}</option>
								</#list>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label required">物流单号：</label>
                            <div class="col-md-4">
                                <input type="text" required name="expressNum" placeholder="请输入物流单号" value="${order.expressNum!}" class="form-control">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">确定</button>
        </div>
    </form>
</div>
<script>
    $("#infoFrom").validate({
        submitHandler: function (form) {
            $(form).ajaxSubmit({
                type: 'POST',
                url: '/admin/order/saveOrderDelivery',
                success: function (data) {
                    successTip(data, null, dlg);
                    setTimeout("location.reload()", 1000);
                }
            });
        }
    });
</script>